package com.kk.framework.ui;

import org.zkoss.zk.ui.Executions;

import com.kk.framework.util.Constants;


/**
 * 页面中特殊的使用代码固定的CSS样式
 * @author 杨晓康 
 */
public class ThemeSpecialFactory
{
	private static ThemeSpecialFactory _Instance = null;
	
	public static ThemeSpecialFactory getInstance()
	{
		if (_Instance == null)
			_Instance = new ThemeSpecialFactory();
		
		return _Instance;
	}
	
	private ThemeSpecialFactory() 
	{
		
	}
	
	public String getMainColor()
	{
		String themeCookie = SimpleThemeProvider.getSkinCookie(Executions.getCurrent());
		if (Constants.THEME_BLUE.equals(themeCookie))
		{
			return "47759e";
		}
		else if (Constants.THEME_BROWN.equals(themeCookie))
		{
			return "c1642a";
		}
		else if (Constants.THEME_PINK.equals(themeCookie))
		{
			return "be597a";
		}
		else if (Constants.THEME_GREEN.equals(themeCookie))
		{
			return "8eab5b";
		}
		else if (Constants.THEME_PURPLE.equals(themeCookie))
		{
			return "906a9a";
		}
		else if (Constants.THEME_BLACK.equals(themeCookie))
		{
			return "7e7e7e";
		}
		else
		{
			return "47759e";
		}
	}
	
	public String gblLinkColor()
	{
		return "#f785a0";
	}
	
	//--BEGIN  快速查询 表格CSS
	public String simpleSearchPanelQuickSearchBorderTop()
	{
		return "1px solid #c5c5c5";
	}
	
	public String simpleSearchPaneBorder()
	{
		return "1px solid #c5c5c5";
	} 
	
	public String simpleSearchPanelQuickSearchBackground()
	{
		return "#f6f6f6";
	}
	
	public String simpleSearchPanelRightBackground()
	{
		return "#f6f6f6";
	}
	
	public String simpleSearchPanelLabelStyle1()
	{
		return "font-weight:bold;color:#b71840;font-size:12px";
	}
	
	public String advSearchPanelBackgroundColor()
	{
		return "#f7faff";
	}
	//--END  快速查询 表格CSS
	
	//--BEGIN 编辑/查看布局CSS
	public String viewEditLayoutBorder()
	{
		return "1px solid #f785a0"; 
	}
	
	public String viewEditLayoutSelectBackground()
	{
		return "background-color:#d1d1d1"; 
	}
	//--END 编辑/查看布局CSS
	
	//--BEGIN 标准列表CSS
	public String standListOddRowBackground()
	{
		return "background-color:#f3f8fe";
	}
	
	public String standListRowBorder()
	{
		return "1px solid #FFCCCC";
	}
	
	public String standListHeaderBackground()
	{
		return "#FFCCCC";
	}
	//--END 标准列表CSS
	
}
